class P492 {

   public static void main(String[] args) {
       String line = readLn();
       while (line != null) {
           process(line);
           line = readLn();
       }
   }

   static private int k;

   private static void process(String line) {
       int length = line.length();
       for (k = 0; k < length; k++) {
           if (isLetter(line.charAt(k))) {
               readWord(line);
           } if (k < line.length()) {
               System.out.print(line.charAt(k));
           }
       }
       System.out.println();
   }

   private static boolean isLetter(char c) {
       return (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z');
   }

   private static void readWord(String line) {
       String answer = line.charAt(k) + "";
       k++;
       while (isLetter(line.charAt(k)) && k < line.length()) {
           answer += line.charAt(k);
           k++;
       }
       System.out.print(translate(answer));
   }

   private static String translate(String answer) {
       if (isVowel(answer.charAt(0))) {
           return answer + "ay";
       } else {
           return answer.substring(1) + answer.charAt(0) + "ay";
       }

   }

   private static boolean isVowel(char c) {
       return c == 'a' || c == 'A' || c == 'e' || c == 'E' || c == 'i' || c == 'I'
           || c == 'o' || c == 'O' || c == 'u' || c == 'U';
   }

   static String readLn() {
       String newLine = System.getProperty("line.separator");
       StringBuffer buffer = new StringBuffer();
       int car = -1;
       try {
           car = System.in.read();
           while ((car > 0) && (car != newLine.charAt(0))) {
               buffer.append((char)car);
               car = System.in.read();
           }
           if (car == newLine.charAt(0))
           System.in.skip(newLine.length() - 1);
       } catch (java.io.IOException e) { return (null);}
       if ((car < 0) && (buffer.length() == 0)) return (null);
       return (buffer.toString());
   }

}